package com.alibaba.sdk.constant;

import com.alibaba.sdk.enums.UserTypeEnum;

/**
 * 用户功能常量信息
 *
 * @ writer Shawn(Shawn_0217@163.com)
 * @ date & time 2021/4/26 23:07
 * @ company alibaba
 */
public class UserInfoConstant {


    /**
     * 用户user
     */
    public static final String USER = "user";

    /**
     * 用户ID
     */
    public static final String USER_ID = "userId";

    /**
     * 用户名
     */
    public static final String USERNAME = "username";

    /**
     * 用户类型
     */
    public static final String USER_TYPE = "userType";

    /**
     * 超级管理员角色
     *
     */
    public static final String SUPER_ADMIN = "SUPER_ADMIN";

    /**
     * 管理员角色
     *
     */
    public static final String ADMIN = "ADMIN";

    /**
     * 管理员权限标识
     */
    public static final String ADMIN_COMPETENCE = UserTypeEnum.ADMIN.name();

    /**
     * 用户权限标识
     */
    public static final String USER_COMPETENCE = UserTypeEnum.USER.name();
}